package com.farm.shop.dao;


import com.farm.shop.domain.ScenicinforDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-09-15 16:02:24
 */
@Mapper
public interface ScenicinforDao {

    ScenicinforDO get(Integer id);

    List<ScenicinforDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(ScenicinforDO scenicinfor);

    int update(ScenicinforDO scenicinfor);

    int remove(Integer id);

    int batchRemove(Integer[] ids);

    /**
     * 查询景区咨询列表
     *
     * @param map 分页参数
     * @return List<ScenicinforDO>
     */
    List<ScenicinforDO> getScenicinforList(Map<String, Object> map);

    /**
     * 查询咨询详情
     *
     * @param scenicinfoId 咨询 id 主键
     * @return ScenicinforDO
     */
    ScenicinforDO getScenicinforsDetail(@Param(value = "id") Integer scenicinfoId);

    List<ScenicinforDO> searchTitle(Map<String, Object> map);

    int searchTitleCount(Map<String, Object> map);
}
